import request from '@/utils/request'

// 查询科研人员类型列表
export function listResearchertype(query) {
  return request({
    url: '/peoplegroup/researchertype/list',
    method: 'get',
    params: query
  })
}

// 查询科研人员类型详细
export function getResearchertype(researcherTypeId) {
  return request({
    url: '/peoplegroup/researchertype/' + researcherTypeId,
    method: 'get'
  })
}

// 新增科研人员类型
export function addResearchertype(data) {
  return request({
    url: '/peoplegroup/researchertype',
    method: 'post',
    data: data
  })
}

// 修改科研人员类型
export function updateResearchertype(data) {
  return request({
    url: '/peoplegroup/researchertype',
    method: 'put',
    data: data
  })
}

// 删除科研人员类型
export function delResearchertype(researcherTypeId) {
  return request({
    url: '/peoplegroup/researchertype/' + researcherTypeId,
    method: 'delete'
  })
}


export function getAllresearchertype() {
  return request({
    url: '/peoplegroup/researchertype/getAllresearchertype',
    method: 'get'
  })
}